A Simple Randomized Algorithm to Compute Harmonic Numbers and Logarithms
نویسنده
چکیده
Given a list of N numbers, the maximum can be computed in N iterations. During these N iterations, the maximum gets updated on average as many times as the Nth harmonic number. We first use this fact to approximate the Nth harmonic number as a side effect. Further, using the fact the Nth harmonic number is equal to the natural logarithm of N plus a constant that goes to zero with N, we approximate the natural logarithm from the harmonic number. To improve accuracy, we repeat the computation over many lists of uniformly generated random numbers. The algorithm is easily extended to approximate logarithms with integer bases or rational arguments.
منابع مشابه
Numerical Study of Coupled Fluid Flow and Heat Transfer in a Rectangular Domain at Moderate Reynolds Numbers using the Control Volume Method
In this paper, we have used a control volume method to investigate the problem of a fully coupled fluid flow with heat transfer in a rectangular domain with slip wall boundary conditions. We have used this method to solve the governing equations and thereby to compute the convective and diffusive fluxes at the cell faces of the control volumes considered around the grid points of computational ...
متن کاملA SIMPLE ALGORITHM FOR COMPUTING TOPOLOGICAL INDICES OF DENDRIMERS
Dendritic macromolecules’ have attracted much attention as organic examples of well-defined nanostructures. These molecules are ideal model systems for studying how physical properties depend on molecular size and architecture. In this paper using a simple result, some GAP programs are prepared to compute Wiener and hyper Wiener indices of dendrimers.
متن کاملPerformance Investigation of Multi-Phase VSI with Simple PWM Switching Techniques
This paper presents the performance investigation of multi-phase voltage source inverter (VSI) with simple PWM switching techniques namely the harmonic injection and offset injection method. The technique discussed in this paper is easy to implement and avoid complicated controlling algorithm adapted in SVPWM technique. A generalized algorithm suitable for odd number of phases is developed in M...
متن کاملFactor Base Discrete Logarithms in Kummer Extensions
The discrete logarithm over finite fields of small characteristic can be solved much more efficiently than previously thought. This algorithmic breakthrough is based on pinpointing relations among the factor base discrete logarithms. In this paper, we concentrate on the Kummer extension Fq2(q−1) = Fq2 [x]/(x q−1 − A). It has been suggested that in this case, a small number of degenerate relatio...
متن کاملA Non-Pythagorean Musical Scale Based on Logarithms
A new musical scale devised by the author, based on natural logarithms, is described. Most of the logarithmic pitches bear no correspondence to the twelve tones of the ancient tuning system attributed to Pythagoras, based on ratios of whole numbers, nor to the chromatic tones of scales in equal temperament used widely in the modern era. Logarithms obey a special arithmetic compared to whole and...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1704.04538 شماره
صفحات -
تاریخ انتشار 2017